package com.scommunity.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.scommunity.domain.Car;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;

@Mapper
@Transactional(rollbackFor = Exception.class)
@Repository
public interface CarMapper extends BaseMapper<Car>{

    ArrayList<Car> getByCondition(Car car);

    void addByCarNum(Car car);
}
